CVE-2022-0871
mediumpriority · track · 36OT risk · elevatedEPSS 0.012 · 69 %ileEUUSEPSS · scored 2026-10-23
Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 5.8–9.1
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-gw5h-h6hj-f56gGogs vulnerable to improper PAM authorization handling2022-03-14ghsa · osvUS
### Impact Expired PAM accounts and accounts with expired passwords are continued to be seen as valid. Installations use PAM as authentication sources are affected. ### Patches Expired PAM accounts and accounts with expired passwords are no longer being seen as valid. Users should upgrade to 0.12.5 or the latest 0.13.0+dev. ### Workarounds In addition to marking PAM accounts as expired, also disable/lock them. Running `usermod -L <username>` will add an exclamation mark to the password hash and would result in wrong passwords responses when trying to login. ### References https://huntr.dev/bounties/ea82cfc9-b55c-41fe-ae58-0d0e0bd7ab62/ ### For more information If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6810.
- GO-2022-0369Gogs vulnerable to improper PAM authorization handling in gogs.io/gogs2024-08-21vendor · osvUS
Gogs vulnerable to improper PAM authorization handling in gogs.io/gogs
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-0871/cnnvd
- https://github.com/gogs/gogs/commit/64102be2c90e1b47dbdd379873ba76c80d4b0e78cnnvd
- https://huntr.dev/bounties/ea82cfc9-b55c-41fe-ae58-0d0e0bd7ab62cnnvd
- https://github.com/gogs/gogs/commit/64102be2c90e1b47dbdd379873ba76c80d4b0e78enisa_euvd
- https://huntr.dev/bounties/ea82cfc9-b55c-41fe-ae58-0d0e0bd7ab62enisa_euvd
- https://github.com/gogs/gogs/commit/64102be2c90e1b47dbdd379873ba76c80d4b0e78PatchThird Party Advisorynvd
- https://huntr.dev/bounties/ea82cfc9-b55c-41fe-ae58-0d0e0bd7ab62ExploitIssue TrackingPatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan