Document:

<PAGE>   1

                                                                    EXHIBIT 10.4

                       STOCK PLEDGE AND SECURITY AGREEMENT

        This Stock Pledge and Security Agreement (this "Pledge Agreement") is
executed and delivered as of the 15th day of December, 2000, by each of the
parties set forth on the signature pages hereof (collectively "Pledgors", and
individually each a "Pledgor" ), to and in favor of FOOTHILL CAPITAL
CORPORATION, a California corporation, as Agent for itself and the other Lenders
("Agent"), with respect to the following facts:

        A. Pledgors, Agent, the Lenders named therein, and other Obligors named
therein have entered into that certain Loan and Security Agreement, dated as of
December 15, 2000 (the same as it may be amended, restated, modified, and
supplemented, and in effect from time to time, the "Loan Agreement"), and
certain other Loan Documents, pursuant to which Loan Documents the Lender Group
has agreed to extend credit to or for the account of Communications & Power
Industries, Inc., a Delaware corporation ("Borrower").

        B. In order to induce the Lender Group to enter into the Loan Agreement
and to accept all of the Loan Documents, and to make advances and otherwise
extend credit to Borrower thereunder, each Pledgor has agreed to secure the
payment and performance of the Guaranteed Obligations (as defined below) and to
accomplish same by (i) executing and delivering to Agent this Pledge Agreement
for the benefit of the Lender Group, (ii) delivering to Agent the Pledged
Securities owned by such Pledgor (hereinafter defined), together with
appropriate powers and/or endorsements duly executed in blank by such Pledgor,
and (iii) delivering to Agent any and all other documents which Agent deems
necessary to protect Agent's interests hereunder or with respect to the
Guaranteed Obligations.

        C. This Pledge Agreement is one of the Stock Pledge Agreements as
defined and described in the Loan Agreement. Capitalized terms, which are used
herein but not defined herein, shall have the meanings ascribed to them in the
Loan Agreement.

        NOW, THEREFORE, in consideration of the premises and for other good and
valuable consideration, receipt of which is hereby acknowledged, Pledgors hereby
agree as follows:

        1.     Definitions.

               (a) "Guaranteed Obligations" means all obligations and
liabilities of Pledgors for payment and performance under or arising out of the
Guaranty.

               (b) "Issuer" shall mean and include each of the corporations
identified in Exhibit "A" hereto, which is incorporated herein by this
reference, individually and collectively.

               (c) "Pledge Agreement" shall mean and include this Pledge and
Security Agreement, as amended, modified or supplemented from time to time.

<PAGE>   2

               (d) "Pledged Property" shall mean and include (i) the Pledged
Securities, the certificates or other instruments representing the Pledged
Securities, any interest of Pledgor in the entries on the books of any financial
intermediary pertaining to the Pledged Shares, together with all cash dividends,
stock dividends, interest, profits, redemptions, warrants, subscription rights,
stock, securities, options, substitutions, exchanges and other distributions now
or hereafter paid, delivered or distributed by Issuer or which may hereafter be
acquired by or delivered with respect to or in exchange for the Pledged
Property, (ii) each Pledgor's records with respect to the foregoing and (iii)
all proceeds of all of the foregoing, regardless of form.

               (e) "Pledged Securities" shall mean the shares of stock described
in Exhibit "A".

               (f) All other terms hereinbefore or hereinafter defined in this
Pledge Agreement shall have the meanings herein assigned to such terms.

               (g) All terms not specifically defined herein which are defined
in the New York Uniform Commercial Code shall be construed in accordance with
the definitions set forth therein. All references herein to the "UCC" shall mean
the Uniform Commercial Code adopted by the New York as in effect from time to
time.

        2.     Grant of Security Interest

               As collateral security for the prompt and unconditional payment
and performance when due of each and every one of the Guaranteed Obligations,
each Pledgor hereby assigns, mortgages, pledges, hypothecates, transfers, sets
over and grants to Agent, for the benefit of the Lender Group, a security
interest in and lien upon all of the Pledged Property.

        3.     Representations, Warranties, Covenants and Waivers

               Each of Pledgors hereby covenants, represents and warrants with
and to Agent that (all of such covenants, representations and warranties being
continuing in nature so long as any of the Guaranteed Obligations are
outstanding):

               (a) The Pledged Securities of each Pledgor are duly authorized,
validly issued, fully paid and nonassessable securities of each Issuer; and are
not registered, nor has any Pledgor or Issuer authorized the registration
thereof, in the name of any person or entity other than such Pledgor or Agent;
and, except as otherwise shown in Exhibit "A" hereto, constitute all issued and
outstanding shares of such Issuer.

               (b) The Pledged Property of each Pledgor is directly, legally and
beneficially owned by such Pledgor free and clear of all claims, liens, pledges
and encumbrances of any kind, nature or description except for the first and
prior pledge and security interest with respect thereto in favor of Agent and
restrictions under applicable securities law.

                                      -2-
<PAGE>   3

               (c) The Pledged Property is not subject to any restrictions
relative to the pledge or transfer thereof, except as noted on the certificates
evidencing the Pledged Securities, and each Pledgor has the right to transfer
and hypothecate the Pledged Property of such Pledgor free and clear of any
liens, encumbrances or restrictions except as otherwise provided herein and
restrictions under applicable securities law.

               (d) The Pledged Property is duly and validly pledged to Agent and
no consent or approval of any governmental or regulatory authority or of any
securities exchange or the like, nor any consent or approval of any other third
party, was or is necessary to the validity and enforceability of this Pledge
Agreement.

               (e) Pledgor authorizes Agent to (i) control the Pledged Property,
(ii) perform any and all other acts which Agent in good faith deems reasonable
and/or necessary for the protection and preservation of the Pledged Property or
its value or Agent's security interest therein, including, without limitation,
but only upon and during the continuation of an Event of Default, transferring,
registering or arranging for the transfer or registration of the Pledged
Property to or in Agent's own name and receiving the income therefrom as
additional collateral for the Guaranteed Obligations and (iii) pay any charges
or expenses which Agent deems necessary for the foregoing purposes, but without
any obligation to do so. Any obligation of Agent for reasonable care for the
Pledged Property in Agent's possession shall be limited to the same degree of
care required by Section 9207 of the UCC (or any comparable successor statute).

               (f) Pledgor will not exercise any right under any Pledged
Property which might constitute the exercise of such control by Agent so as to
make the Issuer of such Pledged Property an Affiliate of Agent until after
occurrence of and during the continuation of an Event of Default.

               (g) Pledgor will pay all charges and assessments of any nature
against the Pledged Property or with respect hereto prior to said charges and/or
assessments being delinquent.

               (h) Pledgor shall promptly reimburse Agent on demand, together
with interest at the rate provided in the Loan Documents, for any charges,
assessments, fees, and reasonable and documented out-of-pocket costs or expenses
paid or incurred by Agent in its Permitted Discretion for the protection,
preservation and maintenance of the Pledged Property and the enforcement of
Agent's rights hereunder, including, without limitation, reasonable and
documented out-of-pocket costs, attorneys fees and other expenses incurred by
Agent in seeking to protect, collect or enforce its rights in the Pledged
Property or otherwise hereunder.

               (i) Pledgor shall furnish Agent with such information concerning
Issuer and the Pledged Property as Agent may from time to time request,
including, without limitation, current financial statements.

               (j) During the term of this Pledge Agreement, if Pledgor shall
receive, have registered in its name or become entitled to receive or acquire or
have registered in its name any stock certificate, option or warrant with
respect to the securities of Issuer (including, without

                                      -3-
<PAGE>   4

limitation, any certificate representing a dividend on or a distribution or
exchange of or in connection with any reclassification of the Pledged
Securities) whether as an addition to, in substitution of, or in exchange for
any of the Pledged Property or otherwise, such Pledgor agrees to accept same as
Agent's agent, to hold same in trust for Agent and to deliver same forthwith to
Agent or Agent's agent or bailee in the form received, with the endorsement(s)
of the applicable Pledgor where necessary or duly executed appropriate powers
and/or assignments, to be held by Agent or Agent's agent or bailee. If any of
the foregoing is at any time in uncertificated form, the applicable Pledgor
shall register same with Agent's security interest noted therein, as further
security for the Guaranteed Obligations, and take such other actions as are
necessary to create a valid and perfected first priority security interest in
favor of Agent in the Pledged Securities or other Pledged Property.

               (k) During the term of this Pledge Agreement, no Pledgor shall
directly or indirectly sell, assign, transfer, or otherwise dispose of, or grant
any option with respect to the Pledged Property, nor shall any Pledgor create,
incur or permit any further pledge, hypothecation, encumbrance, lien, mortgage
or security interest with respect to the Pledged Property except as permitted by
the Loan Agreement.

               (l) So long as no Event of Default has occurred and is
continuing, each Pledgor: (i) shall have the right to vote and exercise all
corporate rights with respect to its Pledged Securities; and (ii) shall have the
right to receive and collect all dividends and distributions (other than of
additional securities of the Issuer, or any options or warrants with respect to
securities of the Issuer) with respect to the Pledged Securities.

               (m) Agent may notify each Issuer or the appropriate transfer
agent of the Pledged Securities to register the security interest and pledge
granted herein in the name of Agent and honor the rights of Agent with respect
to the Pledged Securities and other Pledged Property.

               (n) Pledgor shall perform such further acts and execute such
additional instruments as are reasonably required by Agent to effectuate and
implement this Pledge Agreement and the provisions hereof.

               (o) No action has been taken or is being taken by or is currently
planned by any Pledgor, or any agent acting on its behalf, which would cause
this Pledge Agreement, the Guaranteed Obligations or the Loan Documents to
violate any regulation of the Securities Exchange Act of 1934 or any other
applicable law or regulation, in each case as now in effect or as the same may
hereafter be amended or supplemented. Pledgor is not in the business of
extending credit for the purpose of purchasing or carrying margin stocks or
other securities. The Pledged Property does not compose margin stock.

               (p) Pledgor waives (i) all rights to require Agent to proceed
against any other person, entity or collateral or to exercise any remedy, or
(ii) the defense of the statute of limitations in any action upon any of the
Guaranteed Obligations or other collateral. Agent is

                                      -4-
<PAGE>   5

entitled to all of the benefits of a secured party set forth in Section 9207 of
the UCC (or any comparable successor statute).

        4.     Remedies After Event of Default

               Upon the occurrence and during the continuation of an Event of
Default and subject to any restrictions set forth in the Loan Documents:

               (a) Agent, at its option, shall be empowered to exercise its
right to instruct each Issuer of the Pledged Securities (or the appropriate
transfer agent of the Pledged Securities) to register any or all of the Pledged
Securities and/or other Pledged Property in the name of Agent or in the name of
Agent's nominee, and Agent may complete, in any manner Agent may deem expedient,
any and all stock powers, assignments or other documents heretofore or hereafter
executed in blank by any Pledgor and delivered to Agent. After said instruction,
and without further notice, Agent, in its sole and absolute discretion, shall
have the exclusive right to exercise all voting and corporate rights with
respect to the Pledged Securities and other Pledged Property and exercise any
and all rights of conversion, redemption, exchange, subscription or any other
rights, privileges, or options pertaining to any shares of the Pledged
Securities or the other Pledged Property as if Agent were the absolute owner
thereof, including, without limitation, the right to exchange, in its
discretion, any and all of the Pledged Securities and other Pledged Property
upon any merger, consolidation, reorganization, recapitalization or other
readjustment with respect to Issuer. Upon the exercise of any such rights,
privileges or options by Agent, Agent shall have the right to deposit and
deliver any and all of the Pledged Securities and other pledged property to any
committee, depository, transfer agent, registrar or other designated agency upon
such terms and conditions as Agent may determine, all without liability to any
Pledgor, except to account for property actually received by Agent. However,
Agent shall have no duty to exercise any of the aforesaid rights, privileges or
options (all of which are exercisable in the sole discretion of Agent) and shall
not be responsible for any failure to do so or delay in doing so.

               (b) In addition to all the rights and remedies of a secured party
under the UCC, Agent shall have the right, at any time and without demand of
performance or other demand, advertisement or notice of any kind (except the
notice specified below of time and place of public or private sale) to or upon
any Pledgor or any other Person, to proceed forthwith to collect, redeem,
receive, appropriate, sell, or otherwise dispose of and deliver the Pledged
Property or any part thereof in one or more lots at public or private sale or
sales at any exchange, brokers board or at any of Agent's offices or elsewhere
at such prices and on such terms as Agent may deem commercially reasonable. The
foregoing disposition(s) may be for cash or on credit or for future delivery
without assumption of any credit risk by Agent. The proceeds of any such
collection, redemption, recovery, receipt, appropriation, realization, sale or
other disposition, after deducting all costs and expenses of every kind incurred
relative thereto or incidental to the care, safekeeping, maintenance, or
disposition of any and all Pledged Property or in any way relating to the rights
of Agent hereunder (including, without limitation, reasonable and documented
out-of-pocket attorneys' fees and legal expenses) shall be applied first to the
satisfaction of the Guaranteed Obligations (in such order as Agent may elect and
whether or not due) and then to the payment

                                      -5-
<PAGE>   6

of any amounts required by applicable law, including Section 9504(l)(c) of the
UCC. Each Pledgor shall be liable to Agent for the payment on demand of all
reasonable and documented out-of-pocket costs and expenses of any such sale,
collection or other realizations, together with interest at the rate set forth
in the Loan Documents, together with any reasonable attorneys' fees if placed
with an attorney for collection or enforcement. Each Pledgor agrees that notice
given to it in the same manner given to Pledgor pursuant to Section 12 of the
Loan Agreement is reasonable notification of such matters.

               (c) To the fullest extent permitted by law, Agent or any Lender
may be the purchaser of any or all of the Pledged Collateral at any such sale
and Agent, as agent for and representative of the Lenders (but not any Lender or
Lenders in its or their respective individual capacities unless Required Lenders
shall otherwise agree in writing), shall be entitled, for the purpose of bidding
and making settlement or payment of the purchase price for all or any portion of
the Pledged Property sold at any such public sale, to use and apply any of the
Obligations as a credit on account of the purchase price for any Pledged
Property payable by Agent at such sale. Each purchaser at any such sale shall
hold the property sold absolutely free from any claim or right on the part of
Pledgors, and each Pledgor hereby waives (to the extent permitted by applicable
law) all rights of redemption, stay and/or appraisal which it now has or may at
any time in the future have under any rule of law or statute now existing or
hereafter enacted. Each Pledgor agrees that, to the extent notice of sale shall
be required by law at least ten days' notice to Pledgors of the time and place
of any public sale or the time after which any private sale is to be made shall
constitute reasonable notification. Agent shall not be obligated to make any
sale of Pledged Property regardless of notice of sale having been given. Agent
may adjourn any public or private sale from time to time by announcement at the
time and place fixed therefor, and such sale may, without further notice, be
made at the time and place to which it was adjourned. To the fullest extent
permitted by law, each Pledgor hereby waives any claims against Agent or any
other member of the Lender Group arising by reason of the fact that the price at
which any Pledged Property may have been sold at such a private sale was less
than the price which might have been obtained at a public sale, even if Agent
accepts the first offer received and does not offer such Pledged Property to
more than one offeree. If the proceeds of any sale or other disposition of the
Pledged Property are insufficient to pay all the Obligations, Pledgors shall be
liable for the deficiency and the fees of any attorneys employed by Agent to
collect such deficiency.

               (d) Pledgor recognizes that Agent may be unable to effect a
public sale of all or part of the Pledged Property by reason of certain
prohibitions contained in the Securities Act of 1933, as amended, as now or
hereafter in effect; or contained in applicable Blue Sky or other state
securities law, as now or hereafter in effect, but may be compelled to resort to
one or more private sales to a restricted group of purchasers who will be
obliged to agree, among other things, to acquire Pledged Property for their own
account for investment and not with a view to the further distribution or resale
thereof. If at the time of any sale of the Pledged Property or any part thereof,
the same shall not, for any reason whatsoever, be effectively registered (if
required) under the Securities Act of 1933 (or other applicable federal or state
securities law), as then in effect, Agent in its sole and absolute discretion is
authorized to sell the Pledged Property or any part thereof by private sale in
such matter and under such circumstances as Agent or its counsel may

                                      -6-
<PAGE>   7

deem necessary or advisable in order that such sale may legally be effected
without registration under applicable securities laws. Each Pledgor acknowledges
that private sales so made may be at prices and other terms less favorable to
the seller than if such Pledged Property were sold at public sale, and that
Agent has no obligation to delay the sale of any such Pledged Property for the
period of time necessary to permit the Issuer of the Pledged Property, even if
such Issuer would agree, to register such Pledged Property for public sale under
such applicable securities laws. Each Pledgor agrees that any private sales made
under the foregoing circumstances shall not be deemed to have been in a
commercially unreasonable manner for the sole reason that it is a private sale.

               (e) Each Pledgor hereby agrees that if at any time all or any
part of any payment theretofore paid by such Pledgor and applied by Agent to any
of the Guaranteed Obligations is returned by Agent for any reason whatsoever
(including, without limitation, the insolvency, bankruptcy, reorganization or
assignment for the benefit of creditors of any Pledgor), such Guaranteed
Obligations, for the purpose of this Agreement, to the extent that such payment
is returned, shall be deemed to have continued in existence, notwithstanding
such application by Agent, and this Agreement shall continue to be effective or
be reinstated, as the case may be, as to such Guaranteed Obligations, all as
though such application by Agent had not been made.

               (f) All of Lender Group's rights and remedies, including but not
limited to those arising under this Pledge Agreement, the other Loan Documents,
the instruments and securities comprising the Pledged Property, applicable law
or otherwise, shall be cumulative and not exclusive and shall be enforceable
alternatively, successively or concurrently as Agent may deem expedient. No
failure or delay on the part of Agent in exercising any of its options, powers
or rights or partial or single exercise thereof shall constitute a waiver of
such option, power or right.

        5.     Further Assurances

               Each Pledgor agrees that at any time and from time to time upon
the request of Agent, to execute and deliver such further documents, including
but not limited to irrevocable proxies or stock powers, in form satisfactory to
counsel for Agent, and will take or cause to be taken such further acts as Agent
may request in order to effect the purposes of this Pledge Agreement and perfect
or continue the perfection of the security interest in the Pledged Property
granted to Agent hereunder.

        6.     Miscellaneous

               (a) Beyond the exercise of reasonable care to assure the safe
custody of the Pledged Property while held by Agent hereunder, as provided in
Section 3(e) hereof, neither Agent, nor agent or bailee, nor any other member of
the Lender Group shall have no duty or liability to protect or preserve any
rights pertaining thereto. Agent shall be obligated to return or release its
security interest in the Pledged Property, at the sole expense of Pledgors,
after all Obligations are indefeasibly paid and performed in full in cash and
neither Agent nor any other

                                      -7-
<PAGE>   8

member of the Lender Group is under any further obligation to extend credit
under the Loan Agreement.

               (b) No course of dealing between any Pledgor and Foothill, nor
any failure or delay by Agent or any other member of the Lender Group to
exercise any right, power or privilege under this Pledge Agreement, the other
Loan Documents or under any other agreements, instruments and documents executed
and delivered in connection therewith shall operate as a waiver hereof or
thereof; nor shall any single or partial exercise of any right, power or
privilege hereunder or thereunder preclude any other or further exercise thereof
or the exercise of any other right, power or privilege. No waiver of any
provision of this Pledge Agreement shall be effective unless the same shall be
in writing and signed by Agent, and then such waiver shall be effective only in
the specific instance and for the purpose for which given.

               (c) This Pledge Agreement may not be changed, modified or
amended, in whole or in part, except by a writing signed by each Pledgor and
Agent.

               (d) The provisions of this Pledge Agreement and the Loan
Documents are severable, and if any clause or provision hereof or thereof shall
be held invalid or unenforceable in whole or in part in any jurisdiction, then
such invalidity or unenforceability shall attach only to such clause or
provision or part hereof in any such jurisdiction and shall not in any manner
affect any other clause or provision in this Pledge Agreement or the Loan
Documents in any jurisdiction or such clause or provision in any other
jurisdiction. In the event of any inconsistency between the terms of this Pledge
Agreement and the terms of the Loan Agreement, the terms of the Loan Agreement
shall control.

               (e) This Pledge Agreement shall inure to the benefit of each
member of the Lender Group and their respective successors and assigns and shall
be binding upon each Pledgor and its successors and assigns until all of the
Guaranteed Obligations have been indefeasibly paid and performed in full in
cash. The representatives, warranties, covenants and waivers by each Pledgor in
this Pledge Agreement are joint and several.

               (f) Each Pledgor agrees to indemnify Agent from and against any
and all claims, losses and liabilities in any way relating to, growing out of or
resulting from this Agreement and the transactions contemplated hereby
(including, without limitation, enforcement of this Pledge Agreement), except to
the extent such claims, losses or liabilities result solely from Agent's gross
negligence or willful misconduct as finally determined by a court of competent
jurisdiction.

               (g) Each Pledgor shall pay to Agent upon demand the amount of any
and all reasonable and documented out-of-pocket costs and expenses, including
the reasonable and documented fees and out-of-pocket costs and expenses of its
counsel and of any experts and agents, that Agent may incur in connection with
(i) the administration of this Pledge Agreement, (ii) the custody or
preservation of, or the sale of, collection from, or other realization upon, any
of the

                                      -8-
<PAGE>   9

Pledged Property, (iii) the exercise or enforcement of any of the rights of
Agent hereunder, or (iv) the failure by Pledgors to perform or observe any of
the provisions hereof.

        7.     Continuing Security Interest; Transfer of Loans.

        This Pledge Agreement shall create a continuing security interest in the
Pledged Property and shall (a) remain in full force and effect until the payment
in full of all Guaranteed Obligations, the cancellation or termination of the
Commitments and the cancellation or expiration of all outstanding L/C's, (b) be
binding upon each Pledgor, its successors and assigns, and (c) inure, together
with the rights and remedies of Lender Group hereunder, to the benefit of Lender
Group and its successors, transferees and assigns. Without limiting the
generality of the foregoing clause (c), but subject to the provisions of Section
14 of the Loan Agreement, any Lender may assign or otherwise transfer any of the
Guaranteed Obligations, the Commitments and the other rights and obligations
held by it under the Loan Agreement and the other Loan Documents to any other
Person, and such other Person shall thereupon become vested with all the
benefits in respect thereof granted to Lenders herein or otherwise. Upon the
payment in full in cash of all Guaranteed Obligations (other than inchoate
indemnification obligations with respect to claims, losses or liabilities which
have not yet arisen), the cancellation or termination of the Commitments and the
cancellation or expiration of all outstanding L/C's, the security interest
granted hereby shall terminate and all rights to the Pledged Property of a
Pledgor shall revert to such Pledgor. Upon any such termination Agent will, at
Pledgors' expense, execute and deliver to Pledgor' such documents as Pledgors
shall reasonably request to evidence such termination and Pledgors shall be
entitled to the return, upon its request and at its expense, against receipt and
without recourse to Agent, of such of the Pledged Property as shall not have
been sold or otherwise applied pursuant to the terms hereof.

        8.     CHOICE OF LAW AND VENUE; JURY TRIAL WAIVER.

               THE VALIDITY OF THIS PLEDGE AGREEMENT, THE CONSTRUCTION,
INTERPRETATION, AND ENFORCEMENT HEREOF AND THE RIGHTS OF THE PARTIES HERETO WITH
RESPECT TO ALL MATTERS ARISING HEREUNDER OR RELATED HERETO SHALL BE DETERMINED
UNDER, GOVERNED BY, AND CONSTRUED IN ACCORDANCE WITH THE LAWS OF THE STATE OF
NEW YORK (EXCEPT AS OTHERWISE PROVIDED BY THE UCC). THE PARTIES AGREE THAT ALL
ACTIONS OR PROCEEDINGS ARISING IN CONNECTION WITH THIS PLEDGE AGREEMENT AND THE
OTHER LOAN DOCUMENTS SHALL BE TRIED AND LITIGATED ONLY IN THE STATE AND FEDERAL
COURTS LOCATED IN THE COUNTY OF NEW YORK, STATE OF NEW YORK, OR, IF SUCH COURTS
DO NOT HAVE SUBJECT MATTER JURISDICTION, THEN, AT THE SOLE OPTION OF AGENT, IN
ANY OTHER COURT IN WHICH FOOTHILL SHALL INITIATE LEGAL OR EQUITABLE PROCEEDINGS
PERTAINING TO THE COLLATERAL AND WHICH HAS SUBJECT MATTER JURISDICTION OVER THE
MATTER IN CONTROVERSY. PLEDGOR AND AGENT WAIVES, TO THE EXTENT PERMITTED UNDER
APPLICABLE LAW, ANY RIGHT EACH MAY HAVE TO ASSERT THE DOCTRINE OF

                                      -9-
<PAGE>   10

FORUM NON CONVENIENS OR TO OBJECT TO VENUE TO THE EXTENT ANY PROCEEDING IS
BROUGHT IN ACCORDANCE WITH THIS SECTION 8. EACH PLEDGORS AND AGENT HEREBY WAIVE
ITS RESPECTIVE RIGHTS TO A JURY TRIAL OF ANY CLAIM OR CAUSE OF ACTION BASED UPON
OR ARISING OUT OF ANY OF THE LOAN DOCUMENTS OR ANY OF THE TRANSACTIONS
CONTEMPLATED THEREIN, INCLUDING CONTRACT CLAIMS, TORT CLAIMS, BREACH OF DUTY
CLAIMS, AND ALL OTHER COMMON LAW OR STATUTORY CLAIMS. EACH PLEDGOR AND AGENT
REPRESENTS THAT IT HAS REVIEWED THIS WAIVER AND EACH KNOWINGLY AND VOLUNTARILY
WAIVES ITS JURY TRIAL RIGHTS FOLLOWING CONSULTATION WITH LEGAL COUNSEL. IN THE
EVENT OF LITIGATION, A COPY OF THIS PLEDGE AGREEMENT MAY BE FILED AS A WRITTEN
CONSENT TO A TRIAL BY THE COURT.

        IN WITNESS WHEREOF, the undersigned has caused this Pledge Agreement to
be duly executed and delivered on the day and year first above written.

COMMUNICATIONS & POWER
INDUSTRIES HOLDING CORPORATION
By:____________________________
Name: _________________________
Title: __________________________

Address:
c/o Communications & Power Industries, Inc.
607 Hansen Way,
Palo Alto, California 94303
Attention: Lynn E. Harvey, Chief Financial Officer

CPI SUBSIDIARY HOLDINGS INC.
By:____________________________
Name: _________________________
Title: __________________________

Address:
c/o Communications & Power Industries, Inc.
607 Hansen Way,
Palo Alto, California 94303
Attention: Lynn E. Harvey, Chief Financial Officer

                                      -10-
<PAGE>   11

                                   EXHIBIT "A"

                               PLEDGED SECURITIES

<TABLE>
<CAPTION>
             Issuer                      Type of Securities        No. of Shares   Par Value
<S>                                      <C>                       <C>             <C>
</TABLE><PAGE>   1

                                                                    EXHIBIT 10.5

                        ENVIRONMENTAL INDEMNITY AGREEMENT

     THIS ENVIRONMENTAL INDEMNITY AGREEMENT ("Agreement") is made as of December
15, 2000, by each of the undersigned (collectively, "Obligor"), for the benefit
of FOOTHILL CAPITAL CORPORATION, a California corporation, as Agent for itself
and the other Lenders (as hereinafter defined) ("Foothill"), and the Lenders
(Foothill and the Lenders are collectively referred to herein as "Lender").

     OBLIGOR ENTERS THIS AGREEMENT on the basis of the following facts,
understandings and intentions:

     A. Lender is making or continuing an extension of credit to, or other
financing arrangements with COMMUNICATIONS & POWER INDUSTRIES, INC., a Delaware
corporation ("Borrower"), in the principal amount of Sixty-One Million Dollars
($61,000,000.00), pursuant to that certain Loan and Security Agreement ("Loan
Agreement") of even date herewith by and among Borrower, Foothill, the other
Lenders named therein and other Obligors named therein. Such extension of credit
or other financing arrangements, together with any amendments, replacements,
substitutions, extensions or refundings thereof, are hereinafter referred to as
the "Loan".

     B. In connection with the Loan, Obligor (who may or may not be Borrower)
will undertake or has undertaken certain obligations to Lender other than the
obligations undertaken under this Agreement. Said obligations of Obligor to
Lender (excluding the obligations under this Agreement), together with any
amendments, replacements, substitutions, extensions or refundings thereof, are
hereinafter referred to as the "Obligation".

     C. The term "Collateral" shall mean any property to which Lender or
Foothill, for the benefit of Lender, has been granted a security interest by
Obligor, Borrower, or any other person or entity in connection with the Loan.

     D. The term "Property" shall mean that certain real property located in the
County of Santa Clara, State of California, and legally described in Exhibit A
attached hereto.

     E. Capitalized terms which are used herein but not defined herein shall
have the meanings ascribed to them in the Loan Agreement. "Lenders" means,
collectively, Foothill Capital Corporation, a California corporation, and Ableco
Finance LLC, a Delaware limited liability company, together with their
respective successors and assigns, and shall include any other Person made a
party to the Loan Agreement in accordance with the provisions of Section 14.1
thereof.

     F. Lender would not make the Loan if, as a result, Lender might incur any
liability arising with regard to any Hazardous Substance, as defined in Section
1, below, now or hereafter present in, on, under or around any part of the
Property. Lender requires that

                                       1
<PAGE>   2

Obligor execute this Agreement as a further assurance against such liability.

     H. It is the intention of Lender and Obligor that, as between Lender and
Obligor, Obligor shall be solely responsible for any and all liability arising
with regard to any Hazardous Substance now or hereafter present in, on, under or
around any portion of the Property, and Lender shall under no circumstances have
any liability therefor, to the extent provided herein. Lender and Obligor intend
this Agreement to be fully enforceable to the maximum extent permitted by law.

     NOW THEREFORE, in consideration of, and as an inducement for, Lender making
the Loan and for other good and valuable consideration, Obligor agrees as
follows:

     1. DEFINITION OF HAZARDOUS SUBSTANCE. For purposes of this Agreement, a
"Hazardous Substance" (any two or more, "Hazardous Substances") is defined to
mean any substance or material (including, without limitation, raw materials,
building components, wastes, and the products and by-products of manufacturing
or other activities) which is or becomes designated, classified or regulated as
being "toxic", "hazardous" or similarly designated, classified or regulated
under any federal, state or local law, ordinance, rule or regulation. The term
"Hazardous Substance" shall include, without limitation, (i) substances defined
as "hazardous substances" or "toxic substances" for purposes of the
Comprehensive Environmental Response, Compensation and Liability Act, 42 U.S.C.
Section 9601 et seq. ("CERCLA") or the Resource Conservation and Recovery Act,
42 U.S.C. Section 6901 et seq.; and (ii) petroleum, flammable explosives, urea
formaldehyde insulation, asbestos and radioactive materials.

     2. INDEMNITY REGARDING HAZARDOUS SUBSTANCES. Obligor agrees to indemnify,
defend and hold Lender and each of its parent, subsidiary and affiliated
corporations, and the respective directors, officers, shareholders, employees,
agents, attorneys, representatives, successors and assigns (including, without
limitation, any participants in the Loan) (each an "Indemnitee" and
collectively, the "Indemnitees") harmless from and against all liabilities,
claims, actions, foreseeable and unforeseeable consequential damages, reasonable
and documented out-of-pocket costs and expenses (including sums paid in
settlement of claims and all reasonable and documented out-of-pocket consultant,
expert and legal fees and expenses) or loss directly or indirectly arising out
of or resulting from any Hazardous Substance being present at any time, whether
before or after the date of this Agreement, on or around any portion of the
Property, or in the soil, groundwater or soil vapor on or under any portion of
the Property, including those incurred in connection with any investigation of
site conditions or any clean-up, remedial, removal or restoration work, or any
resulting damages or injuries to the person or property of any third parties or
to any natural resources. Upon demand by Lender, Obligor shall defend any matter
as to which indemnification is or will be sought hereunder, all at the cost of
Obligor and by counsel and consultants to be approved by Lender in the exercise
of its reasonable judgment. Notwithstanding anything to the contrary contained
herein, the indemnity contained in this Section 2 shall not apply with respect
to any Hazardous Substances which are first introduced to the Property by
Lender, its successors or assigns or any third party owner of the Property
following the acquisition of title to the Property by Foothill, Lender, their
successors or assigns or

                                       2
<PAGE>   3

any third party as a result of a foreclosure or deed in lieu of foreclosure of
the deed of trust executed by Borrower in favor of Foothill, encumbering the
Property and securing the Loan.

     3. REPRESENTATION AND WARRANTY REGARDING HAZARDOUS SUBSTANCES. Obligor
represents and warrants that to the best of Obligor's knowledge, no Hazardous
Substance has been released onto or disposed of or otherwise is present in, on,
under or around the Property, except to the extent specifically disclosed to
Lender in writing by Obligor in Exhibit B attached hereto.

     4. COMPLIANCE REGARDING HAZARDOUS SUBSTANCES. Except for those Hazardous
Substances used in connection with the business presently being conducted on the
Property and except for the other Hazardous Substances presently on the Property
and identified on Exhibit B attached hereto, Obligor shall not and shall not
permit any third party to use, generate, manufacture, store, release, discharge
or dispose of any Hazardous Substance in, on, under or about the Property, or
transport any Hazardous Substance to or from the Property except in material
compliance with all applicable laws, ordinances, rules and regulations governing
Hazardous Substances. Obligor has complied and shall comply and cause all
occupants of the Property to comply (including, if necessary, by resort to and
diligent pursuit of all available legal, equitable and administrative remedies
and proceedings) with all applicable laws, ordinances, rules and regulations
governing Hazardous Substances, the orders and directives of all governmental
authorities having jurisdiction over the Property. Obligor shall also cause
Varian Associates, Inc., a Delaware corporation ("Varian") to comply with all of
its obligations under that certain Stock Sale Agreement dated as of June 9,
1995, by and among Varian, Communications & Power Industries Holding
Corporation, a Delaware corporation, and CPII Acquisition Corp., a Delaware
corporation (as amended, the "Stock Sale Agreement").

     5. NOTICES REGARDING HAZARDOUS SUBSTANCES. Until full performance of the
Obligation and repayment of the Loan, Obligor shall promptly notify Lender if
Obligor has actual knowledge (i) that there may be any Hazardous Substance on or
around the Property, or in the soil, groundwater or soil vapor on or under the
Property other than as described in Exhibit B and other than in material
compliance with all applicable laws, ordinances, rules and regulations governing
Hazardous Substances, (ii) that except as previously disclosed in writing to
Lender, Obligor, Borrower or the Property is subject to any threatened or
pending investigation by any governmental agency under any law, ordinance, rule
or regulation pertaining to any Hazardous Substance, or (iii) that except as
previously disclosed in writing to Lender, Obligor, Borrower or the Property is
subject to any claim or litigation by a third party regarding the presence of a
Hazardous Substance. Obligor shall furnish Lender with copies of any notice,
summons, letter, report or other written communication relating to the presence
of Hazardous Substances on or around the Property within three (3) business days
after Obligor's receipt thereof.

                                       3
<PAGE>   4

     6. REMEDIATION WORK. If any investigation, site monitoring, containment,
cleanup, removal, restoration or other remediation work of any kind or nature
(the "Remediation Work") is or becomes necessary or required pursuant to any
applicable federal, state or local law, ordinance, rule or regulation or the
order or directive of any governmental authority having jurisdiction over the
Property, the Hazardous Substances or the Remediation Work, because of, or in
connection with, the past, present or future presence, suspected presence,
release or suspected release of a Hazardous Substance on or around any portion
of the Property or in the soil, groundwater or soil vapor on or under any
portion of the Property, Obligor shall promptly commence to perform, or cause to
be commenced, and thereafter diligently prosecute to completion, all such
Remediation Work (or if Varian is obligated pursuant to the Stock Sale Agreement
to perform such Remediation Work, to cause Varian to perform the same). The
Remediation Work will be conducted in full compliance with all applicable laws,
ordinances, rules and regulations, the orders and directives of all governmental
authorities having jurisdiction over the Property, the Hazardous Substances or
the Remediation Work. Obligor shall cause all Remediation Work to be performed
in a good and workmanlike manner by one or more qualified environmental
engineers or contractors, and under the supervision of one or more qualified
consulting engineers. Obligor's obligations with regard to the Remediation Work
shall include obtaining, at the appropriate time, a letter or other written
statement from all governmental authorities exercising jurisdiction over the
Property, the Hazardous Substances or the Remediation Work that no further
action is required. Obligor shall pay (or if Varian is obligated to perform such
Remediation Work pursuant to the Stock Sale Agreement, cause Varian to pay) for
all Remediation Work, including the costs of plans and specifications,
utilities, permits, fees, taxes and insurance premiums in connection therewith,
and shall keep the Property free from all mechanics' or other liens arising out
of the Remediation Work. Obligor shall keep Lender fully apprised of all
developments and findings during the course of any Remediation Work performed by
Obligor and shall furnish to Lender, promptly upon receipt or preparation, such
information concerning said Remediation Work as Lender may request from time to
time in order to verify Obligor's compliance with this section and to protect
Lender's security, including, without limitation, copies of all reports,
studies, analyses, contracts, manifests, orders and correspondence. Upon
Lender's request, Obligor shall also furnish Lender with written confirmation in
a form satisfactory to Lender showing that all contaminated soil and other
materials removed from the Property and any other property affected by the
Remediation Work have been properly disposed of in accordance with all
applicable laws, ordinances, rules and regulations and the orders and directives
of all governmental authorities having jurisdiction over the Property, the
Hazardous Substances or the Remediation Work. Lender shall have the right, but
not the obligation, to participate in any action or proceeding relating to the
presence or suspected presence of any Hazardous Substances in, on, under or
around the Property, or the necessity for or adequacy of any Remediation Work.
Such participation shall be solely for the purpose of protecting Lender's
security, shall not constitute participation in the management of the Property,
and shall not impose any liability on Lender or result in a waiver of any
default of Obligor.

                                       4
<PAGE>   5

     7. SITE VISITS, OBSERVATIONS AND TESTING. Lender and its agents and
representatives shall have the right at any reasonable time to enter and visit
the Property for the purposes of observing the Property, taking and removing
soil or groundwater samples, and conducting tests on any part of the Property.
Lender agrees to comply with any applicable requirements of the Stock Sale
Agreement and any other applicable documents ancillary thereto in connection
with such observation, sampling and testing. Lender is under no duty, however,
to visit or observe the Property or to conduct tests, and any such acts by
Lender shall be solely for the purposes of verifying Obligor's compliance with
this Agreement and protecting Lender's security. No site visit, observation or
testing by Lender shall result in a waiver of any default of Obligor or impose
any liability on Lender. In no event shall any site visit, observation or
testing by Lender be a representation that Hazardous Substances are or are not
present in, on or under the Property, or that there has been or shall be
compliance with any law, regulation or ordinance pertaining to Hazardous
Substances or any other applicable law or regulation. Neither Obligor nor any
other party is entitled to rely on any site visit, observation or testing by
Lender. Lender owes no duty to inform Obligor or any other party of, any
Hazardous Substances or any other adverse condition affecting the Property.
Lender shall not be obligated to disclose to Obligor or any other party any
report or findings made as a result of, or in connection with, any site visit,
observation or testing by Lender. In each instance, Lender shall give reasonable
notice before entering the Property or any place Lender is permitted to enter
under this Section. Lender shall in good faith use commercially reasonable
efforts to avoid interfering with the use of the Property in exercising any
rights provided in this Section.

     8. SUBROGATION. Upon acquisition of title to the Property by foreclosure or
deed in lieu of foreclosure, Lender shall have full benefit of any and all
rights which Obligor now or hereafter may have against third parties with regard
to Hazardous Substances, whether such rights arise by contract or by operation
of law, and shall have the right, but not the obligation, to enforce such rights
for the sole benefit of Lender directly against any such third party, such
benefits and rights to be limited to the actual amount of damage or harm
suffered by Lender. If the consent of any such third party is necessary to fully
effectuate the foregoing subrogation and assignment of Obligor's rights, Obligor
shall promptly exercise commercially reasonable efforts (not involving the
payment of money or the granting of other consideration) to obtain such consent.

     9. EVENT OF DEFAULT. A breach by Obligor of any material representation,
covenant, warranty or other provision of this Agreement shall constitute, at the
election of Lender in its sole discretion, an event of default under the
Obligation.

     10. SEPARATE UNSECURED OBLIGATIONS. This Agreement shall not be secured by
any deed of trust, mortgage or deed to secure debt securing the Obligation or
the Loan or encumbering all or any portion of the Property. The liability of
Obligor under this Agreement shall not be limited to or measured by the amount,
if any, outstanding under the Loan or Obligation or by reference to the value of
any of the Property or Collateral. No action for the enforcement of or recovery
of damages under this Agreement shall constitute an action within

                                       5
<PAGE>   6

the meaning of Section 726 of the California Code of Civil Procedure or similar
laws in other states, and no judgment against Obligor in any action hereunder
shall constitute a money judgment or deficiency judgment within the meaning of
Section 580(a), 580(b), 580(d) or 726 of the California Code of Civil Procedure
or similar laws in other states. The rights of Lender under this Agreement shall
be cumulative and in addition to any other rights and remedies of Lender under
any other document or instrument or at law or in equity.

     11. WAIVER OF SURETYSHIP AND GUARANTOR DEFENSES. If Obligor is a surety or
a guarantor hereunder for any obligation of the Borrower and the owner of the
Property, or either of them ("Principal"), Obligor expressly waives and
relinquishes any and all rights and remedies Obligor may have or be able to
assert by reason of laws relating to the rights and remedies of sureties or
guarantors. Obligor authorizes Lender, without notice or consent from Obligor,
and without affecting Obligor's liability under this Agreement, from time to
time to (a) modify, waive, extend, renew, or enforce any obligation of
Principal; (b) take, hold, enforce, waive, impair, compromise or release
security for the performance of any obligation of Principal; (c) apply any
security and direct the order or manner of sale as Lender in its sole discretion
may determine; (d) release or substitute, in whole or in part, any person or
entity liable for any obligation of Principal; and (e) settle or compromise any
obligation of Principal. Obligor waives (i) all rights to require Lender to
proceed against Principal or any other party, or proceed against or exhaust any
security held by Lender or pursue any other remedy in Lender's power, (ii) any
defense arising by reason of any disability or other defense of Principal or by
reason of the cessation from any cause of the liability of Principal, (iii) any
defense based on or arising out of any setoff, defense or counterclaim which
Principal may have or claim to have against Lender; and (iv) any defense arising
out of the impairment or loss of any right of reimbursement or subrogation or
any other right or remedy of Obligor against Principal or any such security,
regardless of the cause. Obligor understands that if Lender forecloses by
trustee's sale, by the exercise of a power of sale or nonjudicially on a deed of
trust, mortgage or deed to secure debt given by Principal securing the
Obligation or the Loan, Obligor might then have a defense preventing Lender from
thereafter enforcing Obligor's obligations under this Agreement. This defense
arises because such a sale would eliminate Obligor's right of subrogation, and
therefore Obligor would be unable to obtain reimbursement from Principal.
Obligor specifically waives this defense and all rights and defenses that
Obligor may have because the Obligation or the Loan are secured by real property
pledged by Principal. This means, among other things: (1) Lender may exercise
any rights or remedies which Lender has under this Agreement without first
foreclosing on any real or personal property collateral pledged by Principal;
and (2) if Lender forecloses on any real property collateral pledged by
Principal securing the Obligation or the Loan: (A) the amount of the Obligation
or the Loan may be reduced only by the price for which the collateral is sold at
the foreclosure sale, even if the collateral is worth more than the sale price;
and (B) Lender may exercise its rights and remedies under this Agreement, even
if Lender, by foreclosing on any real property collateral pledged by Principal,
has destroyed any right Obligor may have to collect from Principal. This is an
unconditional and irrevocable waiver of any rights and defenses Obligor may have
because the Obligation or the Loan is secured by real property pledged by
Principal. These rights and defenses include, but are not limited to, any rights
or

                                       6
<PAGE>   7

defenses based upon Section 580a, 580b, 580d, or 726 of the California Code of
Civil Procedure or similar laws in other states.

     12. SURVIVAL. This Agreement and the obligations and liabilities of Obligor
hereunder shall survive and remain in full force and effect following the
performance, repayment or discharge of the Obligation and the Loan, including,
without limitation, by a full or partial reconveyance of all or any portion of
the Property or by amounts paid or credit bid at a foreclosure sale or by
discharge in connection with a deed in lieu of foreclosure. Obligor waives the
right to assert any statute of limitations as a bar to the enforcement of this
Agreement.

     13. SEVERABILITY. If any of Obligor's obligations hereunder shall be held
to be unenforceable, the remainder of this Agreement and its application to all
obligations other than those with respect to which it is held unenforceable
shall not be affected thereby and shall remain in full force and effect.

     14. ATTORNEYS' FEES. If either party enforces its obligations hereunder,
the non-prevailing party shall pay to the prevailing party all reasonable and
documented out-of-pocket costs incurred, whether or not suit is filed,
including, but not limited to, reasonable and documented out-of-pocket
attorneys' fees and court costs.

     15. GOVERNING LAW. The terms of this Agreement shall be governed by and
construed according to the laws of the State of New York.

     16. JOINT AND SEVERAL OBLIGATIONS. If more than one person or entity has
executed this Agreement as Obligor, their liability shall be joint and several.

     17. SUCCESSORS AND ASSIGNS. All of the provisions hereof shall inure to the
benefit of Lender and Lender's successors, assigns and transferees and be
binding upon Obligor and Obligor's successors and assigns; provided, however,
that no assignment of this Agreement by Obligor shall release Obligor from
Obligor's obligations hereunder.

     18. ENTIRE AGREEMENT. There are no oral or side agreements between Lender
and Obligor affecting this Agreement, and this Agreement contains the entire
agreement of the parties with regard to the subject matter contained herein. No
amendment, modification, termination or cancellation of this Agreement shall be
effective unless in writing and signed by both Lender and Obligor.

     19. WAIVER OF JURY TRIAL. OBLIGOR HEREBY WAIVES ITS RIGHTS TO A JURY TRIAL
OF ANY CLAIM OR CAUSE OF ACTION BASED UPON OR ARISING OUT OF THIS AGREEMENT,
INCLUDING CONTRACT CLAIMS, TORT CLAIMS, BREACH OF DUTY CLAIMS, AND ALL OTHER
COMMON LAW OR STATUTORY CLAIMS. OBLIGOR REPRESENTS THAT IT HAS REVIEWED THIS
WAIVER AND KNOWINGLY AND VOLUNTARILY WAIVES ITS JURY TRIAL

                                       7
<PAGE>   8

RIGHTS FOLLOWING A CONSULTATION WITH LEGAL COUNSEL. IN THE EVENT OF LITIGATION,
A COPY OF THIS AGREEMENT MAY BE FILED AS A WRITTEN CONSENT TO A TRIAL BY THE
COURT.

     IN WITNESS WHEREOF, Obligor has executed this Agreement as of the date
first above written with the intent to be legally bound thereby.

                                        "OBLIGOR"

                                        COMMUNICATIONS & POWER INDUSTRIES, INC.,
                                        a Delaware corporation

                                        By:
                                           -------------------------------------

                                        Title:
                                              ----------------------------------

                                        COMMUNICATIONS & POWER INDUSTRIES
                                        HOLDING CORPORATION,
                                        a Delaware corporation

                                        By:
                                           -------------------------------------

                                        Title:
                                              ----------------------------------

                                        CPI SUBSIDIARY HOLDINGS  INC.,
                                        a Delaware corporation

                                        By:
                                           -------------------------------------

                                        Title:
                                              ----------------------------------

                                        COMMUNICATIONS & POWER INDUSTRIES
                                        INTERNATIONAL INC.,
                                        a Delaware corporation

                                        By:
                                           -------------------------------------

                                        Title:
                                              ----------------------------------

                                       8
<PAGE>   9

                                        COMMUNICATIONS & POWER
                                        INDUSTRIES ASIA INC.,
                                        a Delaware corporation

                                        By:
                                           -------------------------------------

                                        Title:
                                              ----------------------------------

                                        COMMUNICATIONS & POWER
                                        INDUSTRIES CANADA, INC.,
                                        an Ontario corporation

                                        By:
                                           -------------------------------------

                                        Title:
                                              ----------------------------------

                                       9
<PAGE>   10

                                    EXHIBIT A

                                    PROPERTY

<PAGE>   11

                                    EXHIBIT B

                           KNOWN HAZARDOUS SUBSTANCES

             List known Hazardous Substances below or write "None."

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00020-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00020-of-00352.parquet"}]]