CVE-2021-48012
8.8high
fast-toml through 0.5.4 Prototype Pollution via __proto__ Keys in Parsed TOML
- Severity
- 8.8high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.58% (higher than 42% of CVEs)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
fast-toml through 0.5.4 contains a prototype pollution vulnerability that allows attackers to modify Object.prototype by supplying TOML containing __proto__, constructor or prototype key segments. Attackers can pass [__proto__] or [constructor.prototype] table headers or __proto__.x dotted keys to parse() to pollute all objects, causing denial of service or authorization bypass.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Gin-Quin fast-toml | up to 0.5.4 | CVE List |
All scores
| VulnCheck | 8.8high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N |
| VulnCheck | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
References
| https://github.com/Gin-Quin/fast-toml/issues/8 | issue-tracking | |
| https://github.com/Gin-Quin/fast-toml/pull/3 | issue-tracking, patch | |
| https://github.com/Gin-Quin/fast-toml | product | |
| https://www.vulncheck.com/advisories/fast-toml-through-0.5.4-prototype-pollution-via-proto-keys-in-parsed-toml | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-48012 changed 2026-10-26 | CVE Terms of Use |
| NVD | CVE-2021-48012 changed 2026-10-26 | Public domain |