# CVE-2023-6857: When resolving a symlink, a race may occur where the buffer passed to readlink may actually be smaller than necessary.

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 53% of CVEs (2026-12-01)
- Published: 2023-12-19T13:38:37.621Z
- Modified: 2026-06-17T06:51:33.417Z
- Weaknesses: CWE-362
- Assigned by: mozilla

## Description

When resolving a symlink, a race may occur where the buffer passed to `readlink` may actually be smaller than necessary. 
*This bug only affects Firefox on Unix-based operating systems (Android, Linux, MacOS). Windows is unaffected.* This vulnerability affects Firefox ESR < 115.6, Thunderbird < 115.6, and Firefox < 121.

(As written by CVE List.)

## Affected

- Mozilla Firefox ESR: from unspecified before 115.6
- Mozilla Thunderbird: from unspecified before 115.6; before 115.6
- Mozilla Firefox: from unspecified before 121; before 121.0
- mozilla firefox_esr: before 115.6
- debian debian_linux: 10.0; 11.0; 12.0

## References

- <https://bugzilla.mozilla.org/show_bug.cgi?id=1796023> (issue-tracking, permissions-required)
- <https://www.mozilla.org/security/advisories/mfsa2023-54/> (vendor-advisory)
- <https://www.mozilla.org/security/advisories/mfsa2023-55/> (vendor-advisory)
- <https://www.mozilla.org/security/advisories/mfsa2023-56/> (vendor-advisory)
- <https://www.debian.org/security/2023/dsa-5581> (third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5582> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/12/msg00020.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2023/12/msg00021.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202401-10> (third-party-advisory)

## Sources

- CVE List: [CVE-2023-6857](https://www.cve.org/CVERecord?id=CVE-2023-6857), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-6857](https://nvd.nist.gov/vuln/detail/CVE-2023-6857), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-6857 · Whole record: https://cve.day/CVE-2023-6857.json · Rebuilt by cve.day 2026-11-25T22:58:31.512Z
