# CVE-2026-5561: Campcodes Complete POS Management and Inventory System RCE via configuration injection

Source: https://junglewise.ai/threats/cve-2026-5561-campcodes-complete-pos-management-and-inventory-system-rce-via  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-05. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-5561 · Severity: medium · CVSS 6.3 · Published 2026-04-05

A vulnerability in the Campcodes Complete POS Management and Inventory System allows an authenticated user to take control of the server. By manipulating system settings, an attacker can inject malicious commands that are executed when the system performs a database backup. This could lead to a total system compromise, theft of customer data, or disruption of business operations.

Vendors: [Campcodes](https://junglewise.ai/threats/vendors/campcodes).

## Quick answers

**Is CVE-2026-5561 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-5561 being exploited in the wild.

**How severe is CVE-2026-5561?** Medium severity, with a CVSS score of 6.3, published 5 April 2026.

**Which products and versions are affected?** Campcodes Complete POS Management and Inventory System up to 4.0.6.

**Is there a fix for CVE-2026-5561?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-5561 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-5561?** Check whether you run Campcodes Complete POS Management and Inventory System at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in the Environment Variable Handler within app/Http/Controllers/SettingsController.php. The application fails to sanitize user input (specifically newline characters) when updating system configurations, allowing an authenticated attacker to inject arbitrary variables into the .env file. By overriding the DUMP_PATH variable, an attacker can redirect the path used by the DatabaseBackUp command. When a backup is triggered, the application executes the attacker-controlled path via PHP's exec() function, leading to Remote Code Execution (RCE) with the privileges of the web server.

## Affected products

- Campcodes Complete POS Management and Inventory System up to 4.0.6

## Timeline

- 2026-04-05: disclosed: Vulnerability disclosed and CVE assigned
- 2026-04-05: advisory: NVD and VulDB published advisories

## References

- [https://github.com/whatyourname12345/CVE/blob/main/POS/cve.md](https://github.com/whatyourname12345/CVE/blob/main/POS/cve.md)
- [https://vuldb.com/submit/782934](https://vuldb.com/submit/782934)
- [https://vuldb.com/vuln/355331](https://vuldb.com/vuln/355331)
- [https://vuldb.com/vuln/355331/cti](https://vuldb.com/vuln/355331/cti)
- [https://www.campcodes.com/](https://www.campcodes.com/)
