# CVE-2024-1314: Kinto Attachment's attachments can be replaced on read-only records

- Severity: High 8.6 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-02-08T18:32:10.000Z
- Modified: 2026-07-07T17:56:44.775Z
- Also known as: GHSA-hvp4-vrv2-8wrq, PYSEC-2026-1494

## Description

### Impact

The attachment file of an existing record can be replaced if the user has `"read"` permission on one of the parent (collection or bucket).

And if the `"read"` permission is given to `"system.Everyone"` on one of the parent, then the attachment can be replaced on a record using an anonymous request.

Note that if the parent has no explicit read permission, then the records attachments are safe.

### Patches

- Patch released in kinto-attachment 6.4.0
- https://github.com/Kinto/kinto-attachment/commit/f4a31484f5925cbc02b59ebd37554538ab826ca1

### Workarounds

None if the read permission has to remain granted.

Updating to 6.4.0 or applying the patch individually (if updating is not feasible) is strongly recommended.

### References

- https://bugzilla.mozilla.org/show_bug.cgi?id=1879034

(As written by GitHub Advisory Database.)

## Affected

- kinto-attachment (PyPI): before 6.4.0

## Every score

- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`

## References

- <https://github.com/Kinto/kinto-attachment/security/advisories/GHSA-hvp4-vrv2-8wrq> (web)
- <https://github.com/Kinto/kinto-attachment/commit/f4a31484f5925cbc02b59ebd37554538ab826ca1> (fix, web)
- <https://bugzilla.mozilla.org/show_bug.cgi?id=1879034> (web)
- <https://github.com/Kinto/kinto-attachment> (package)
- <https://pypi.org/project/kinto-attachment> (package)
- <https://github.com/advisories/GHSA-hvp4-vrv2-8wrq> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1314> (advisory)

## Sources

- GitHub Advisory Database: [GHSA-hvp4-vrv2-8wrq](https://github.com/advisories/GHSA-hvp4-vrv2-8wrq), CC-BY-4.0, modified 2026-07-07
- PyPA Advisory Database: [PYSEC-2026-1494](https://osv.dev/vulnerability/PYSEC-2026-1494), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-1314 · Whole record: https://cve.day/CVE-2024-1314.json · Rebuilt by cve.day 2026-11-25T22:56:38.355Z
