# CVE-2025-51657: SemCms SQL injection in SEMCMS_Link.php

Source: https://junglewise.ai/threats/cve-2025-51657-semcms-sql-injection-in-semcms-link-php  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-07-14. Updated: 2026-07-05  
License: CC BY 4.0 with a link back

CVE-2025-51657 · Severity: medium · CVSS 5.4 · Published 2025-07-14

SemCms, a content management system used for building e-commerce and corporate websites, contains a security flaw in its link management component. An attacker with basic user access can exploit this to interact directly with the website's database. This could lead to the unauthorized viewing or modification of sensitive business data and potentially allow the attacker to gain administrative control over the database.

Technologies: [SEMCMS](https://junglewise.ai/threats/technologies/semcms). Vendors: [SEMCMS](https://junglewise.ai/threats/vendors/semcms).

## Quick answers

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

**How severe is CVE-2025-51657?** Medium severity, with a CVSS score of 5.4, published 14 July 2025.

**Which products and versions are affected?** SEMCMS <= 5.0.

**Is there a fix for CVE-2025-51657?** 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-2025-51657 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2025-51657?** Check whether you run SEMCMS 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

A SQL injection vulnerability exists in SemCms versions up to and including 5.0. The flaw is located in the 'lgid' parameter within the SEMCMS_Link.php file, which fails to properly sanitize user-supplied input before using it in a SQL query (CWE-89). An attacker with low-privileged network access can exploit this to perform unauthorized database queries. Successful exploitation can lead to the disclosure of sensitive information, modification of database records, and in some configurations, the acquisition of database administrator (DBA) privileges. A Proof of Concept (PoC) has been disclosed by third-party researchers.

## Affected products

- SemCms SemCms <= 5.0

## Timeline

- 2025-07-14: advisory: Initial disclosure of CVE-2025-51657

## References

- [https://github.com/Y4y17/CVE/blob/main/SemCms/SQL_Injection_6.md](https://github.com/Y4y17/CVE/blob/main/SemCms/SQL_Injection_6.md)
- [https://www.sem-cms.com/](https://www.sem-cms.com/)

## Related threats

- [SEMCMS SQL injection in SEMCMS_Banner.php](https://junglewise.ai/threats/cve-2026-108814-a-flaw-has-been-found-in-semcms-up-to-5-0-this-impacts-an)
- [SEMCMS improper authorization in user deletion](https://junglewise.ai/threats/cve-2026-108812-a-security-vulnerability-has-been-detected-in-semcms-up-to-5-0)
- [SEMCMS unauthenticated file upload in KindEditor interface](https://junglewise.ai/threats/cve-2026-96739-a-flaw-has-been-found-in-semcms-up-to-4-2-affected-by-this-issue)
- [SemCms CSRF in admin user management module](https://junglewise.ai/threats/cve-2026-39170-semcms-csrf-in-admin-user-management-module)
- [SEMCMS unauthenticated database export in SEMCMS_copy.php](https://junglewise.ai/threats/cve-2026-39169-semcms-unauthenticated-database-export-in-semcms-copy-php)
