# CVE-2026-27895: LAM has incorrect regular expression in PDF export component that allows user to upload files of any type

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/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.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-03-17T23:51:26.501Z
- Modified: 2026-06-17T10:27:50.273Z
- Weaknesses: CWE-185
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

LDAP Account Manager (LAM) is a webfrontend for managing entries (e.g. users, groups, DHCP settings) stored in an LDAP directory. Prior to version 9.5, the PDF export component does not correctly validate uploaded file extensions. This way any file type (including .php files) can be uploaded. With GHSA-w7xq-vjr3-p9cf, an attacker can achieve remote code execution as the web server user. Version 9.5 fixes the issue. Although upgrading is recommended, a workaround would be to make /var/lib/ldap-account-manager/config read-only for the web-server user.

(As written by CVE List.)

## Affected

- LDAPAccountManager lam: < 9.5
- ldap-account-manager ldap_account_manager: from 8.5 before 9.5

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-88hf-2cjm-m9g8> (vendor-advisory)
- <https://github.com/LDAPAccountManager/lam/security/advisories/GHSA-w7xq-vjr3-p9cf> (not-applicable)
- <https://github.com/LDAPAccountManager/lam/releases/tag/9.5> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-27895 · Whole record: https://cve.day/CVE-2026-27895.json · Rebuilt by cve.day 2026-11-25T22:59:16.065Z
