# Copyleft licenses explained for dealmakers: GPL, LGPL and AGPL

Source: https://techduediligence.co/insights/copyleft-licenses-gpl-agpl/

A copyleft license lets anyone use, change and share a piece of software on one main condition: if you pass the software on, you pass it on under the same license, with the source code. The condition is triggered by specific events, not by use as such. Knowing which event belongs to which license answers most of the questions a dealmaker needs to ask about a copyleft finding.

## Key points

- Copyleft obligations are triggered by an event, usually distribution, so first establish how the target's product reaches its customers.
- The GPL applies on distribution, the AGPL adds network use of a modified version, and the LGPL is designed to let proprietary software link to a library under conditions.
- Running copyleft software internally, or building with copyleft tools, generally creates no obligation to publish your own code.
- How far the obligations reach into proprietary code depends on how the components are combined, which is a question for engineers and counsel together.

## What copyleft asks

Copyright gives the author of software the exclusive right to copy, change and distribute it. A license is the author's permission to do those things, on conditions.

Copyleft licenses were written by authors who wanted their software, and improvements to it, to stay open. The bargain is deliberate: you may build on this work, and in return the people who receive your version get the same freedoms you received. Use outside those terms is use without permission, which the rights holder can pursue.

| License | Event that triggers the main obligation | What it asks, in outline |
|---|---|---|
| GPL v2 and v3 | Distributing the software | Provide the source code of the program, and of works based on it, under the GPL |
| LGPL | Distributing the library | Provide the library's source, including your changes to it, and let recipients replace the library with a modified version |
| AGPL v3 | Distribution, and also letting users interact with a modified version over a network | As GPL v3, and in addition offer the source of the modified version to those network users |

All three also require copyright notices and a copy of the license to accompany the software.

## GPL: the distribution trigger

GPL obligations are triggered when the software is distributed, meaning that a copy passes to someone outside the organization. Common forms of distribution are a downloadable installer, software deployed on a customer's own servers, a mobile app in an app store and firmware inside a device. Code sent to run in a customer's browser may also count.

Running GPL software on your own servers to provide a hosted service is generally not distribution of that software. That is why a GPL component in the back end of a pure software-as-a-service product is usually of low concern.

When distribution does occur, the obligation covers the GPL program and works based on it. The cautious and widely held reading is that a proprietary program that links to a GPL library and is distributed with it has to be offered under the GPL as a whole. The point has rarely been tested in court and views differ.

The two versions in common use are not interchangeable. Version 3 adds, among other things, an express patent license and a mechanism that reinstates rights when a violation is corrected. Code licensed under version 2 only cannot simply be combined with code under version 3.

## LGPL: written for libraries

The Lesser GPL was designed so that a library could be used by proprietary software without that software coming under copyleft. The conditions fall on the library: changes to the library itself must be shared, and the recipient must be able to swap in a modified version of the library and still run the application.

That second condition is easy to meet when the library is a separate file loaded at run time. It is harder when the library is compiled into a single binary, or when the product runs on a locked device or is delivered through an app store. The usual LGPL finding in technical due diligence is not that the license was used, but that it was used in a way that makes the replacement condition difficult to honor.

## AGPL: the hosted-service case

Because the GPL is triggered by distribution, a company can modify GPL software, run it as a hosted service and never owe anyone source code. The Affero GPL was written to address that. Under section 13 of AGPL v3, if you modify the program and let users interact with it remotely over a network, you must offer those users the source of your modified version.

For a software-as-a-service company this is the copyleft license that needs the most attention. It is covered in [AGPL compliance in a SaaS product](/insights/agpl-compliance-saas/).

## What does not trigger copyleft

Several common situations create no obligation to release proprietary code.

- **Internal use.** A company may modify GPL software and run it internally without publishing anything.
- **Development tools.** Using a copyleft compiler, editor or test tool does not generally bring the software you produce with it under the license.
- **The operating system.** Running an application on Linux does not by that fact bring the application under the GPL.
- **Separate programs.** Independent programs that sit on the same server or disk, or that exchange data at arm's length, are generally treated as separate works.

## What this means for a proprietary product

For a dealmaker the practical step is to map the target's delivery model onto the triggers.

A hosted-only product distributes little, so the AGPL matters most and the GPL least. A product installed at customers, shipped as a mobile or desktop app or embedded in hardware is distributed, so GPL and LGPL components inside it need a close reading. Many companies are hybrids: a hosted service with an on-premises edition for large customers, or with a client app. The edition that is distributed is the one to examine.

A buyer that intends to white-label the product or offer it on-premises changes the trigger analysis, as does a target [moving between delivery models](/insights/saas-migration-due-diligence/). Transfers of software between separate legal entities, as in an asset sale, can also raise the distribution question and are worth putting to counsel. The wider transaction picture is in [open-source license risk in M&A](/insights/open-source-license-risk-m-and-a/).

This article is general information, not legal advice. The reach of copyleft licenses is interpreted differently across jurisdictions and facts, and counsel should be consulted on any specific case.

## How we approach it

Our [technical due diligence](/tech-due-diligence/) includes software composition analysis, license compliance and a full software bill of materials (SBOM) at every level of review. The report lists each open-source license with its obligations. The Automated Scan Report is targeted within 72 hours of the data room being ready to scan.

In our standard engagement, the Analyst-Verified Report, an in-house analyst verifies the findings, removes false positives and rates the risks in the context of the company. Material issues are paired with the market-standard remedy and a remediation estimate, which is data-backed negotiation support, not advisory.

The seller answers beside each finding, on the record, and both sides read one report. How the review runs from data room to report is set out on [how it works](/how-it-works/). Our work on licenses is analysis, not legal advice.

## Questions we are asked

### Does using GPL software mean our product must be open source?

Not by itself. Running GPL software, using it internally and building with GPL tools do not require you to publish your own code. The obligation arises when you distribute GPL software, or a work based on it, to others.

### Is the LGPL safe for proprietary software?

It was designed for that use, on conditions. You must share changes to the library itself and let recipients replace the library with their own version. Check how the library is built into the product, because some packaging choices make the second condition hard to meet.

### Will your report tell us whether a copyleft finding is a legal problem?

The report tells you which components carry a copyleft license and what each license asks. Whether a particular use breaches a license is a legal conclusion for counsel, who can draw it from the facts in the report.
